<?php
	
	$this->load_template('header.php');
	
?>
					<div id="settings">
						<div id="settings_left">				
							<div class="ttl" style="margin-right:12px;"><div class="ttl2"><h3><?= $this->lang('settings_menu_title') ?></h3></div></div>
							<div class="sidenav">
							  <?php if(!empty($C->SMSID)) { ?>
								<a href="<?= $C->SITE_URL ?>settings/sms"  class="onsidenav"><?= $this->lang('settings_menu_sms') ?></a>
								<?php } ?>
								<a href="<?= $C->SITE_URL ?>settings/profile" ><?= $this->lang('settings_menu_profile') ?></a>
								<a href="<?= $C->SITE_URL ?>settings/contacts" ><?= $this->lang('settings_menu_contacts') ?></a>
								<a href="<?= $C->SITE_URL ?>settings/avatar"><?= $this->lang('settings_menu_avatar') ?></a>
								<a href="<?= $C->SITE_URL ?>settings/password"><?= $this->lang('settings_menu_password') ?></a>
								<a href="<?= $C->SITE_URL ?>settings/email"><?= $this->lang('settings_menu_email') ?></a>
								<a href="<?= $C->SITE_URL ?>settings/system"><?= $this->lang('settings_menu_system') ?></a>
								<a href="<?= $C->SITE_URL ?>settings/notifications"><?= $this->lang('settings_menu_notif') ?></a>
								<?php if( function_exists('curl_init') ) { ?>
								<a href="<?= $C->SITE_URL ?>settings/rssfeeds"><?= $this->lang('settings_menu_rssfeeds') ?></a>
								<?php } ?>
								<a href="<?= $C->SITE_URL ?>settings/delaccount"><?= $this->lang('settings_menu_delaccount') ?></a>
                                 <?php if(!empty($C->QQID)) { ?>
								<a href="<?= $C->SITE_URL ?>settings/qq" ><?= $this->lang('settings_menu_qq') ?></a>
								<?php } ?>
							</div>
						</div>
						<div id="settings_right">
							<?php if( $D->submit && empty($D->errmsg1) && empty($D->errmsg2) ) { ?>
							<?= okbox($this->lang('st_sms_ok'), $this->lang('st_sms_okmsg')) ?>
							<?php } ?>
                            <?php if( !empty($D->errmsg1) ) { ?>
								<?= errorbox($this->lang('st_sms_error'), $this->lang($D->errmsg1), TRUE, 'margin-top:5px;margin-bottom:0px;') ?>
								<?php } ?>
                                 <?php if( !empty($D->errmsg2) ) { ?>
								<?= errorbox($this->lang('st_sms_error'), $this->lang($D->errmsg2), TRUE, 'margin-top:5px;margin-bottom:0px;') ?>
								<?php } ?>
							<div class="ttl"><div class="ttl2">
								<h3><?= $this->lang('settings_sms_ttl2') ?></h3>
								
							</div></div>
							<form method="post" action="">
								<table id="setform" cellspacing="5">
								
									<tr>
										<td class="setparam"><?= $this->lang('st_sms') ?></td>
										<td><input type="text" name="tel" value="<?= $D->i->tel ?>" class="setinp" maxlength="255" /></td>
									</tr>
                                    	<tr>
										<td></td>
										<td><?= $this->lang('st_sms_1') ?></br><?= $this->lang('st_sms_2') ?></br><font size="+4" color="#FF9900"><?= $this->lang('st_sms_3') ?></font></td>
									</tr>
								<tr>
										<td></td>
                                        <?php if(empty($D->i->tel)){ ?>
										<td><input type="submit" name="sbm" value="<?= $this->lang('st_sms_savebtn') ?>" style="padding:4px; font-weight:bold;"/></td>
                                        <?php } else { ?>
                                        <td><input type="submit" name="sbm" value="<?= $this->lang('st_sms_savebtn2') ?>" style="padding:4px; font-weight:bold;"/></td>
                                        <?php } ?>
									</tr>
								</table>
							</form>
						</div>
					</div>
<?php
	
	$this->load_template('footer.php');
	
?>